package com.example.chatroom.controller;

import com.example.chatroom.common.pojo.CommonResult;
import com.example.chatroom.dao.dataobject.UserDO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/t1")
    public CommonResult<UserDO> t1(){
        UserDO userDO =new UserDO();
        userDO.setId(0L);
        userDO.setDeleteFlag((byte)0);
        userDO.setGmtCreate(new Date());
        userDO.setGmtModified(new Date());
        userDO.setPassword("22");
        return CommonResult.success(userDO);
    }
}
